package cc.sheji.reposity;


import cc.sheji.domain.User;
import cc.sheji.domain.UserFocus;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

@Repository
public interface UserFocusRepository extends CrudRepository<UserFocus, Long> , JpaSpecificationExecutor<UserFocus> {


    void deleteAllByFocusUserIdAndUserId(Long focusUserId, long loginIdAsLong);

    UserFocus findFirstByFocusUserIdAndUserId(Long focusUserId, long loginIdAsLong);
}
